package com.zjh.bean;

/**
 * @author LiZiQiu
 * @data 2023/2/27
 */
public class Student {
    private int id;//属性名=数据库列名
    private String studentno;
    private String name;
    private int age;
    private Grade grade;

    public Grade getGrade() {
        return grade;
    }

    public void setGrade(Grade grade) {
        this.grade = grade;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getStudentno() {
        return studentno;
    }

    public void setStudentno(String studentno) {
        this.studentno = studentno;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public String toString() {
        return "Student{" +
                "id=" + id +
                ", studentno='" + studentno + '\'' +
                ", name='" + name + '\'' +
                ", stuage=" + age +
                '}';
    }
}
